package com.weibo.action;

import weibo4j.Users;
import weibo4j.model.User;
import weibo4j.model.WeiboException;

public class UserAction {

	public User getUserInfo(){
		User user = null;;
		try {
			Users users = Users.getInstance();
			users.setToken(OAuthAction.getInstance().getAccessToken().getAccessToken());
			user = users.showUserById(OAuthAction.getInstance().getAccessToken().getUid());
		} catch (WeiboException e) {
			e.printStackTrace();
		}
		return user;
	}
	
}
